package types

type ItemResult struct {
	Key   int
	Value string
}

func ConversionEnum(data map[int]string) []*ItemResult {
	results := make([]*ItemResult, 0)
	for k, v := range data {
		result := new(ItemResult)
		result.Key = k
		result.Value = v
		results = append(results, result)
	}
	return results
}
